<?php
/**
 * Feature Name:	Init
 */

if ( ! class_exists( 'Kader_Init' ) ) {

	class Kader_Init extends Kader {
		
		/**
		 * Instance holder
		 *
		 * @var		NULL | __CLASS__
		 */
		private static $instance = NULL;
		
		/**
		 * Method for ensuring that only one instance of this object is used
		 *
		 * @return	__CLASS__
		 */
		public static function get_instance() {
				
			if ( ! self::$instance )
				self::$instance = new self;
			return self::$instance;
		}
		
		/**
		 * Setting up some data, initialize translations and start the hooks
		 *
		 * @return	void
		 */
		public function __construct () {
			add_filter( 'init', array( $this, 'kader_wordPress_init_hopks' ) );
			//$this->test();
		}
		
	public function test() {
			var_dump(get_class($this));
		}
		
		public function kader_wordPress_init_hopks() {
			if ( function_exists('register_activation_hook') ) {
				function kader_slider_activation() {
				}
				register_activation_hook(__FILE__, 'kader_slider_activation');
			}
			
			if ( function_exists('register_deactivation_hook') ) {
				function kader_slider_deactivation() {
					var_dump('test');
					exit;
				}
				register_deactivation_hook(__FILE__, 'kader_slider_deactivation');
			}
			
			if ( function_exists('register_uninstall_hook') ) {
				function kader_slider_uninstalllation() {
				}
				register_uninstall_hook(__FILE__, 'kader_slider_uninstalllation');
			}
		}
				
		
	}
	// Kickoff
	if ( function_exists( 'add_filter' ) )
		Kader_Init::get_instance();
}